﻿namespace KingerRobot.MexicoSailunMDC.Spi;
/// <summary>
/// 出库后扫描服务
/// </summary>
public interface IExWarehousingAfterScanService
{
    /// <summary>
    /// 出库后任务创建
    /// </summary>
    /// <param name="locId">位置ID</param>
    /// <param name="productCode">条码</param>
    /// <param name="sProductCode">扫描条码</param>
    long CreateTask(long locId, string productCode, int lineTaskNo, string sProductCode, string targetLoc = "");
    /// <summary>
    /// 出库后任务执行
    /// </summary>
    /// <param name="taskNo">任务编号</param>
    /// <param name="locId">当前位置</param>
    int ExecuteTask(int taskNo,long locId);
    /// <summary>
    /// 出库后任务完成
    /// </summary>
    /// <param name="taskNo">任务编号</param>
    /// <param name="locId">当前位置</param>
    int FinishTask(int taskNo, long locId);
}
